Skip to content

Conversation

@valeriy42
Copy link
Contributor

@valeriy42 valeriy42 commented Mar 27, 2025

This is a purely refactoring PR. It introduces a parameter initialization object for the bucket gatherer to reduce the constructor signature and simplify future code extensions.

I also added -modernize-use-ranges to the clang-tidy rules because Clang 14 does not support range algorithms.

@valeriy42 valeriy42 force-pushed the enhancement/hard-limit-bucket-gatherer branch from 75fd9a3 to 94f2efe Compare April 8, 2025 13:56
@valeriy42 valeriy42 changed the title [ML] Limit influence counts in hard_limit state [ML] Refactor initialization of the bucket gatherer Apr 10, 2025
@valeriy42 valeriy42 marked this pull request as ready for review April 10, 2025 13:11
@valeriy42 valeriy42 requested review from Copilot and edsavage April 10, 2025 13:11
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 3 out of 22 changed files in this pull request and generated no comments.

Files not reviewed (19)
  • include/model/CBucketGatherer.h: Language not supported
  • include/model/CDataGatherer.h: Language not supported
  • include/model/CEventRateBucketGatherer.h: Language not supported
  • include/model/CMetricBucketGatherer.h: Language not supported
  • include/model/CModelFactory.h: Language not supported
  • lib/model/CBucketGatherer.cc: Language not supported
  • lib/model/CCountingModelFactory.cc: Language not supported
  • lib/model/CDataGatherer.cc: Language not supported
  • lib/model/CEventRateBucketGatherer.cc: Language not supported
  • lib/model/CEventRateModelFactory.cc: Language not supported
  • lib/model/CEventRatePopulationModelFactory.cc: Language not supported
  • lib/model/CMetricBucketGatherer.cc: Language not supported
  • lib/model/CMetricModelFactory.cc: Language not supported
  • lib/model/CMetricPopulationModelFactory.cc: Language not supported
  • lib/model/CModelFactory.cc: Language not supported
  • lib/model/unittest/CEventRateDataGathererTest.cc: Language not supported
  • lib/model/unittest/CEventRatePopulationDataGathererTest.cc: Language not supported
  • lib/model/unittest/CHierarchicalResultsTest.cc: Language not supported
  • lib/model/unittest/CMetricDataGathererTest.cc: Language not supported

Copy link
Contributor

@edsavage edsavage left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@elastic-sonarqube
Copy link

@valeriy42 valeriy42 merged commit 66ed0f3 into elastic:main Apr 11, 2025
15 checks passed
@valeriy42 valeriy42 deleted the enhancement/hard-limit-bucket-gatherer branch April 11, 2025 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants